﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CYTS.Aoyou.Framework.Context
{
    /// <summary>
    /// 上下文句柄接口（由每种协议引擎实现）
    /// </summary>
    public interface IContextHandler
    {
        /// <summary>
        /// 获取上下文
        /// </summary>
        /// <returns>返回当前上下文</returns>
        WebContext GetContext();

        /// <summary>
        /// 设置当前上下文
        /// </summary>
        void SetContext(WebContext context);
    }
}
